package com.xuecheng.learning.api;

import com.xuecheng.commons.model.dto.RecordDto;
import com.xuecheng.commons.model.vo.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author HuangYuwu
 * @CreateTime 2022/9/16 22:38
 */
@FeignClient("xc-learning-service")
public interface LearningClient {
    /**
     * （支付成功）保存或更新选课记录
     * @param recordDto
     * @return
     */
    @PostMapping("/courseRecord/saveRecord")
    public ResponseResult saveRecord(@RequestBody RecordDto recordDto);
}
